//请求路由
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const login = () => import('../views/login.vue')
const index = () => import('../views/index.vue')
const routes = [
  { path: "/", name: 'login', component: login },
  { path: '/index', name: 'index', component: index }
];
const router = new VueRouter({
  //  base: process.env.VUE_APP_BASE_PATH,
  routes,
  mode: 'history',   // 去除#号
})

export default router